﻿<%@ control language="C#" autoeventwireup="true" inherits="_modules_ucSalesDetails, App_Web_uortujqs" %>

    <div class="addCustomerFormContainer">
        <div class="addCustomerFormRowText" style="margin-top:5px;">
            Sale Details
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText"><span style="color:Red;">*</span>Sale Bill No.</span>
            <div class="addCustomerFormInputDiv"><input id="txtSaleBill" type="text" class="addCustomerFormInput" maxlength="50" />
            <div id="valBillNo" class="validationAlert"></div>
            </div>
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText"><span style="color:Red;">*</span>Bill Date</span>
            <div class="addCustomerFormInputDiv"><input id="txtBillDate" type="text" class="addCustomerFormInput" />
            <div id="valBillDate" class="validationAlert"></div>
            </div>
            <span class="addCustomerFormText">Dealer/Outlet</span>
            <div class="addCustomerFormInputDiv"><input id="txtDealer" type="text" class="addCustomerFormInput" maxlength="200" /></div>
        </div>
        <div class="addCustomerFormRow">
        <span class="addCustomerFormText">Product type</span>
            <div class="addCustomerFormInputDiv">
                <asp:DropDownList ID="ddlProdCate" runat="server" CssClass="addCustomerFormInput" onchange="fnDisableTxtboxes(this);"  DataTextField="brandCate" DataValueField="ID" AppendDataBoundItems="true">
                    <asp:ListItem>--Select Product Type--</asp:ListItem>
                </asp:DropDownList>
            <%--<select id="ddlProdCate" class="addCustomerFormInput" onchange="fnDisableTxtboxes(this);">
                            <option value="0">--Select product type--</option>
                            <option value="1">Air Conditioner</option>
                            <option value="2">Battery</option>
                            <option value="3">Freezer</option>
                            <option value="4">Inverters / UPS</option>
                            <option value="5">Water cooler</option>
                            <option value="6">Water dispenser</option>
                            <option value="7">Water heater</option>
             </select>--%>
            
            </div>
            <%--<div class="addCustomerFormInputDiv" style="width:75px; margin-left:10px;">
            
            <select id="ddlTon" class="addCustomerFormInput" style="width:75px;">
                <option selected="selected">Ton</option>
                <option>0.5</option>
                <option>0.75</option>
                <option>1.0</option>
                <option>1.5</option>
                <option>2.0</option>
            </select>
            
            </div>--%>
            <span class="addCustomerFormText">Product</span>
            <div id="divContainerPredictive" class="addCustomerFormInputDiv" style="position:relative;">
                <input id="txtProductName" type="text" class="addCustomerFormInput" style="font-size: 9px;padding: 8px;width: 213px;" onkeyup="javascript:fnPredictiveSearchLoadProductName(event, this, MainSearch_LocationRefresh,true);return submitButton(event,$('divGobtn'));" />
            <%--<select id="ddlBrands" class="addCustomerFormInput">
                <option selected="selected">Select Brand</option>
                <option>BlueStar</option>
                <option>Carrier</option>
                <option>Electrolux</option>
                <option>Godrej</option>
                <option>LG</option>
                <option>Onida</option>
                <option>Samsung</option>
                <option>Sanyo</option>
                <option>Videocon</option>
                <option>Voltas</option>
                <option>Whirlpool</option>
            </select>--%>
            
            </div>
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText">Model S.No.</span>
            <div class="addCustomerFormInputDiv"><input id="txtModalNo" type="text" class="addCustomerFormInput" />
            </div>
            <span class="addCustomerFormText">Indoor S.No.</span>
            <div class="addCustomerFormInputDiv"><input id="txtIndoorNo" type="text" class="addCustomerFormInput" disabled="disabled" style="background-color:#f2f2f2;" />
            </div>
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText">Outdoor unit No.</span>
            <div class="addCustomerFormInputDiv"><input id="txtOutdoorNo" type="text" class="addCustomerFormInput" disabled="disabled" style="background-color:#f2f2f2;" />
            </div>
            <span class="addCustomerFormText">Compressor No.</span>
            <div class="addCustomerFormInputDiv"><input id="txtCompressorNo" type="text" class="addCustomerFormInput" disabled="disabled" style="background-color:#f2f2f2;" />
            </div>
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText">Comments</span>
            <div class="addCustomerFormInputDiv" style="height:200px;"><textarea id="txtAreaComments" rows="10" cols="75" /></div>
        </div>
    </div>
    <div class="addCustomerFormButtonContainer" style="width:95%;margin-right: 30px;">
        <div id="saveSaleBillData" class="adminColorButton" style="float:right;" onclick="saveSaleBillData();">Save & Continue</div>
        <div class="adminGrayButton" style="float:right;">Cancel</div>
    </div>
<asp:HiddenField ID="hidSalesGuid" runat="server" />
<script type="text/javascript">
    $(document).ready(function () {
        cGSaleID = $('input[type=hidden][id*=hidSalesGuid]').val();
    });
    $(function () {
        var date = new Date();
        var currentMonth = date.getMonth();
        var currentDate = date.getDate();
        var currentYear = date.getFullYear();
        $('#txtBillDate').datepicker({
            maxDate: new Date(currentYear, currentMonth, currentDate)
        });
    });
</script>
